﻿@model IEnumerable<TrainingManagement.Models.tblCourse>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.CourseName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CourseDetails)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CourseLevel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CourseVersion)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CourseTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CourseTimeUnitID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MeasurementID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExpectKnowledgeValue)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExpectKnowledgeTypeID)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CourseName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseLevel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseVersion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseTimeUnitID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MeasurementID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExpectKnowledgeValue)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExpectKnowledgeTypeID)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
